package com.jwsoft.manager.common.enums;
/**
 * @author chenzh
 * @date 2022-03-10
 * @description
 **/
public enum EnrollStatusEnum {
    no("no", "不招生"),
    wait("wait", "未开始"),
    on("on", "招生中"),
    auth("auth", "审核中"),
    onVacancy("onVacancy", "空额抢报中"),
    finish("finish", "已结束");

    private String type;
    private String name;

    EnrollStatusEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EnrollStatusEnum getByType(String type) {

        for (EnrollStatusEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
